package com.educhains.module.blog.vo;

import java.text.SimpleDateFormat;
import java.util.Date;

public class BlogReply {

    private String replyId;

    private String blogId;

    private String blogSectionId;

    private String userId;

    private String userName;

    private String targetReplyId;

    private String blogReplyContent;

    private String blogReplyReplyNum;

    private Date blogReplyCreateTime;

    private Boolean blogReplyIsDelete;


    public BlogReply(String replyId, String blogId, String blogSectionId, String userId, String userName, String targetReplyId, String blogReplyContent, String blogReplyReplyNum, Date blogReplyCreateTime, Boolean blogReplyIsDelete) {
        this.replyId = replyId;
        this.blogId = blogId;
        this.blogSectionId = blogSectionId;
        this.userId = userId;
        this.userName = userName;
        this.targetReplyId = targetReplyId;
        this.blogReplyContent = blogReplyContent;
        this.blogReplyReplyNum = blogReplyReplyNum;
        this.blogReplyCreateTime = blogReplyCreateTime;
        this.blogReplyIsDelete = blogReplyIsDelete;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table m_blog_reply
     *
     * @mbggenerated
     */
    public BlogReply() {
        super();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_blog_reply.reply_id
     *
     * @return the value of m_blog_reply.reply_id
     *
     * @mbggenerated
     */
    public String getReplyId() {
        return replyId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_blog_reply.reply_id
     *
     * @param replyId the value for m_blog_reply.reply_id
     *
     * @mbggenerated
     */
    public void setReplyId(String replyId) {
        this.replyId = replyId == null ? null : replyId.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_blog_reply.blog_id
     *
     * @return the value of m_blog_reply.blog_id
     *
     * @mbggenerated
     */
    public String getBlogId() {
        return blogId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_blog_reply.blog_id
     *
     * @param blogId the value for m_blog_reply.blog_id
     *
     * @mbggenerated
     */
    public void setBlogId(String blogId) {
        this.blogId = blogId == null ? null : blogId.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_blog_reply.blog_section_id
     *
     * @return the value of m_blog_reply.blog_section_id
     *
     * @mbggenerated
     */
    public String getBlogSectionId() {
        return blogSectionId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_blog_reply.blog_section_id
     *
     * @param blogSectionId the value for m_blog_reply.blog_section_id
     *
     * @mbggenerated
     */
    public void setBlogSectionId(String blogSectionId) {
        this.blogSectionId = blogSectionId == null ? null : blogSectionId.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_blog_reply.user_id
     *
     * @return the value of m_blog_reply.user_id
     *
     * @mbggenerated
     */
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }


    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getTargetReplyId() {
        return targetReplyId;
    }

    public void setTargetReplyId(String targetReplyId) {
        this.targetReplyId = targetReplyId == null ? null : targetReplyId.trim();
    }

    public String getBlogReplyReplyNum() {
        return blogReplyReplyNum;
    }

    public void setBlogReplyReplyNum(String blogReplyReplyNum) {
        this.blogReplyReplyNum = blogReplyReplyNum == null ? null : blogReplyReplyNum.trim();
    }

    public String getBlogReplyContent() {
        return blogReplyContent;
    }

    public void setBlogReplyContent(String blogReplyContent) {
        this.blogReplyContent = blogReplyContent == null ? null : blogReplyContent.trim();
    }


    public String getblogReplyCreateTime() {
        return new SimpleDateFormat("yyyy-MM-dd HH:mm").format(blogReplyCreateTime);
    }

    public void setblogReplyCreateTime(Date blogReplyCreateTime) {
        this.blogReplyCreateTime = blogReplyCreateTime;
    }

    public Boolean getBlogReplyIsDelete() {
        return blogReplyIsDelete;
    }

    public void setBlogReplyIsDelete(Boolean blogReplyIsDelete) {
        this.blogReplyIsDelete = blogReplyIsDelete;
    }
}